/*
 * Project it.battlehorse.rcp.tools.commons
 * Created on Nov 18, 2005
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * A copy of the LGPL is available also at
 * http://www.gnu.org/copyleft/lesser.html
 * 
 */ 
package it.battlehorse.rcp.tools.commons;


/**
 * An enumeration which identifies the possible event types which may happen on
 * the application.
 * 
 * @author battlehorse
 * @since Nov 18, 2005
 */
public enum EventType  {
	
	/**
	 * Represents a validation event which has occurred on the application
	 */
	VALIDATION_EVENT ("Validation"), 
	
	/**
	 * Represents an actor execution which has terminated on the application
	 */
	EXECUTION_STATUS_EVENT ("Execution"),
	
	/**
	 * Represents an exception which has occurred on the application
	 */
	EXCEPTION_EVENT ("Exception") ,
	
	/**
	 * Represents a generic event which has occurred on the application
	 */
	GENERIC_EVENT ("Generic");
	
	/* The message which describes this event type */
	private String message;
	
	/**
	 * Creates a new event type, described by the given message
	 * 
	 * @param message a message which describes the event type
	 */
	EventType(String message) {
		this.message = message;		
	}
	
	/**
	 * Returns a message which describes this event type
	 * 
	 * @return a message which describes this event type
	 */
	public String getMessage() {
		return message;
	}	

}
